
//
//  AppMacro.h
//  qdSubway
//
//  Created by andi911 on 2019/5/29.
//  Copyright © 2019 andi911. All rights reserved.
//

#ifndef AppMacro_h
#define AppMacro_h

#define Screen_W  [UIScreen mainScreen].bounds.size.width
#define Screen_H  [UIScreen mainScreen].bounds.size.height

#define CLYImage(imageName) [UIImage imageNamed:imageName]
//字体
#define CLYFont(x) [UIFont systemFontOfSize:(x)]

#define getRectNavAndStatusHight  self.navigationController.navigationBar.frame.size.height+[[UIApplication sharedApplication] statusBarFrame].size.height

///颜色
#define RGBACOLOR(r,g,b)  [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(1.0)]

#define RGBACOLORA(r,g,b,a)  [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

#define RGB(r)  [UIColor colorWithRed:(r)/255.0 green:(r)/255.0 blue:(r)/255.0 alpha:(1)]

///颜色值
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


#ifdef DEBUG
#define DLog(xx, ...)  NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define DLog(xx, ...)  ((void)0)
#endif // #ifdef DEBUG

#define CLYUserDefaults [NSUserDefaults standardUserDefaults]


#endif /* AppMacro_h */
